package com.itic.timer.demo;



import java.util.Date;
import java.util.UUID;

import com.itic.appbase.framework.common.controller.BaseController;
import com.itic.appbase.framework.utils.DateHelper;
import com.itic.ht.mem.member.service.WebMemberService;


public class TestTimerController extends BaseController {
    @SuppressWarnings("unused")
	private WebMemberService webMemberService;
    public void setWebMemberService(WebMemberService webMemberService) {
		this.webMemberService = webMemberService;
	}
    
    @SuppressWarnings("static-access")
	public void execute(){
    	GlobalToken gt = new GlobalToken();
    	System.out.println("原有的   token ==== "+ gt.getAppToken());
    	//生成口令
    	String uuid = UUID.randomUUID().toString();
    	gt.setAppToken(uuid);
    	DateHelper.formatDateTime(new Date());
    	System.out.println("生成   token success"+"token  = "+gt.getAppToken());
    }
    
}